package com.louis.buddhist.data.http;

import com.louis.buddhist.data.entity.BookList;
import com.louis.buddhist.data.entity.CatalogEntity;
import com.louis.buddhist.data.entity.PageEntity;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface Api {

    @GET("api/ebook/lists")
    Observable<BookList> getBookList();

    @GET("api/ebook/contents")
    Observable<CatalogEntity> getBookCatalog(@Query("book_id") String book_id);

    @GET("api/ebook/paging")
    Observable<PageEntity> getBookPaging(@Query("book_id") String book_id);
}